package com.dragon.mmochat.message;

import com.dragon.mmochat.MmochatConstant;
import com.skymobi.buffer.SkymobiBuffer;
import com.skymobi.message.SkymobiModuleMessage;

//请求验证推荐人信息
public class Mmochat_CheckSuggesterInfo extends SkymobiModuleMessage {
	private int srcModuleId; // 发起请求的实例号
	private int dstModuleId; // 目标实例号(推荐人所在的区服实例号)
	private String imei; // 填写推荐人的imei
	private long skyId; // 填写推荐人的skyId
	private String suggestName; // 推荐人名字
	private String info; // 向推荐人下发的通知

	public Mmochat_CheckSuggesterInfo() {
		setMsgCode(MmochatConstant.MSGCODE_MMOCHAT_C_1_25);
	}

	@Override
	protected void decodeBody(SkymobiBuffer in) {
		imei = in.getPrefixedString(1);
		skyId = in.getLong();
		suggestName = in.getPrefixedString(1);
		info = in.getPrefixedString(2);
	}

	@Override
	protected void encodeBody(SkymobiBuffer out) {
		out.putPrefixedString(imei, 1);
		out.putLong(skyId);
		out.putPrefixedString(suggestName, 1);
		out.putPrefixedString(info, 2);
	}

	public int getDstModuleId() {
		return dstModuleId;
	}

	public void setDstModuleId(int dstModuleId) {
		this.dstModuleId = dstModuleId;
		setDstId(dstModuleId);
	}

	public int getSrcModuleId() {
		return srcModuleId;
	}

	public void setSrcModuleId(int srcModuleId) {
		this.srcModuleId = srcModuleId;
		setSrcId(srcModuleId);
	}

	public String getImei() {
		return imei;
	}

	public void setImei(String imei) {
		this.imei = imei;
	}

	public long getSkyId() {
		return skyId;
	}

	public void setSkyId(long skyId) {
		this.skyId = skyId;
	}

	public String getSuggestName() {
		return suggestName;
	}

	public void setSuggestName(String suggestName) {
		this.suggestName = suggestName;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

}
